package com.xc.h05.service.changlongfei.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xc.h05.entity.CoursereplyCLFV;
import com.xc.h05.mapper.CoursereplyMapper;
import com.xc.h05.service.changlongfei.VCoursereplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VCoursereplyserviceImpl implements VCoursereplyService {
    @Autowired
    private CoursereplyMapper coursereplyMapper;
    @Override
    public PageInfo<CoursereplyCLFV> selectByPage(int pageNum, int pageSize, CoursereplyCLFV coursereplyCLFV) {
      PageHelper.startPage(pageNum,pageSize);
        List<CoursereplyCLFV> coursereplyCLFVS = coursereplyMapper.selectByPage(coursereplyCLFV);
        return new PageInfo<>(coursereplyCLFVS);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return coursereplyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteCoursereplyBatch(Long[] ids) {
        return coursereplyMapper.deleteCoursereplyBatch(ids);
    }

}
